load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

go_library(
    name = "go_default_library",
    embed = [":gogoproto_go_proto"],
    importpath = "github.com/envoyproxy/protoc-gen-validate/gogoproto",
    visibility = ["//visibility:public"],
)

proto_library(
    name = "gogoproto_proto",
    srcs = ["gogo.proto"],
    visibility = ["//visibility:public"],
    deps = ["@com_google_protobuf//:descriptor_proto"],
)

go_proto_library(
    name = "gogoproto_go_proto",
    importpath = "github.com/envoyproxy/protoc-gen-validate/gogoproto",
    proto = ":gogoproto_proto",
    visibility = ["//visibility:public"],
)
